package routers

import (
	"onion/controllers"

	"github.com/astaxie/beego"
)

func init() {
	beego.Router("/admin/login",
		&controllers.AdminController{},
		"post:Login",
	)
	beego.Router("/admin/logout",
		&controllers.AdminController{},
		"post:Logout",
	)
	beego.Router("/admin/setpwd",
		&controllers.AdminController{},
		"post:SetPWD",
	)
	beego.Router("/app/add",
		&controllers.SoftController{},
		"post:AddSoft",
	)
	beego.Router("/app/change",
		&controllers.SoftController{},
		"post:UpdateApp",
	)
	beego.Router("/user/register",
		&controllers.UserController{},
		"post:Register",
	)
}
